package com.hdjd.dao;

import com.hdjd.entities.GoodsStock;
import org.apache.ibatis.annotations.Param;

public interface GoodsStockDao {
    int deleteByPrimaryKey(Integer stkId);

    int insert(GoodsStock record);

    int insertSelective(GoodsStock record);

    /**
     * 根据商品id查询商品前一天的库存
     * @param goId
     * @return
     */
    GoodsStock selectGoodsStockByGoIdAndStkDate(@Param("goId") Integer goId, @Param("stkDate") String stkDate);

    int updateByPrimaryKeySelective(GoodsStock record);

    int updateByPrimaryKey(GoodsStock record);
}